import {getRequest, postRequest} from "@/utils/request.js";

export async function getUserInfo(userId) {
    try {
        return await getRequest('/heaven-server/user/get-userinfo', {userId});
    } catch (e) {
        return {code: -1, msg: e.message};
    }
}